﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WZ.DC.Config
{
    public class WebConfig
    {
        #region base
        public static string GetApp(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }
        static string GetConnection(string key)
        {
            return ConfigurationManager.ConnectionStrings[key].ConnectionString;
        }
        #endregion

        #region  相册名称
        public static string AlbumName
        {
            get
            {
                return GetApp("AlbumName");
            }
        }
        #endregion

        #region  图片服务器域名
        public static string FileDomain
        {
            get
            {
                return GetApp("FileDomain");
            }
        }
        #endregion

        #region  Pn
        public static string Pn
        {
            get
            {
                return GetApp("Pn");
            }
        }
        #endregion


        #region 企汇网接口appid
        public static string appid
        {
            get
            {
                return GetApp("appid");
            }
        }
        #endregion
        #region 企汇网接口appSecret
        public static string appSecret
        {
            get
            {
                return GetApp("appSecret");
            }
        }
        #endregion
        #region 企汇网接口GetCode
        public static string GetCode
        {
            get
            {
                return GetApp("GetCode");
            }
        }
        #endregion
        #region 企汇网接口GetToken
        public static string GetToken
        {
            get
            {
                return GetApp("GetToken");
            }
        }
        #endregion
        #region 企汇网接口GetQGJ
        public static string GetQGJ
        {
            get
            {
                return GetApp("GetQGJ");
            }
        }
        #endregion
    }
}
